package com.example.databinding_demo;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

public class User extends BaseObservable {
    private String username;

    private int pwd;

    public User(){}

    public User(String username, int pwd) {
        this.username = username;
        this.pwd = pwd;
    }

    @Bindable
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;

    }
    @Bindable
    public int getPwd() {
        return pwd;
    }

    public void setPwd(int pwd) {
        this.pwd = pwd;
        notifyPropertyChanged(BR.pwd);
    }
}
